package com.zycfc.zsf.boot.validation.autoconfigure;

import org.springframework.boot.context.properties.*;

@ConfigurationProperties("zsf.boot.validator")
public class ValidatorProperties
{
    public static final String PREFIX = "zsf.boot.validator";
    private String extendResourceName;
    
    public String getExtendResourceName() {
        return this.extendResourceName;
    }
    
    public void setExtendResourceName(final String extendResourceName) {
        this.extendResourceName = extendResourceName;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ValidatorProperties)) {
            return false;
        }
        final ValidatorProperties other = (ValidatorProperties)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$extendResourceName = this.getExtendResourceName();
        final Object other$extendResourceName = other.getExtendResourceName();
        if (this$extendResourceName == null) {
            if (other$extendResourceName == null) {
                return true;
            }
        }
        else if (this$extendResourceName.equals(other$extendResourceName)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof ValidatorProperties;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $extendResourceName = this.getExtendResourceName();
        result = result * 59 + (($extendResourceName == null) ? 43 : $extendResourceName.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "ValidatorProperties(extendResourceName=" + this.getExtendResourceName() + ")";
    }
}
